import axios from "axios";
axios.defaults.baseURL = "http://124.93.196.45:10001/";
axios.interceptors.request.use((config) => {
  //config,是一个配置对象，里面有个重要的属性，headers请求头
  //进度条开始
  let token = localStorage.getItem("token");
  if (token) {
    config.headers.Authorization = token;
  }
  return config;
});
export default  axios;